<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8" %>
<html>
  <head>
    
    <title>EL上</title>

  </head>
  
  <body>
  是否忽悠表达式：isELIgnored="true"
  2+5 = ${2+5 }<br>
  2*5 = ${2*5 }<br>
  2==5 = ${2==5 }<br>
  <form action="El1.jsp" method="post">
      name:<input name="name">
    <label><input type="checkbox" name="aihao" value="chi">吃 </label>
    <label><input type="checkbox" name="aihao" value="he">喝</label>
    <label><input type="checkbox" name="aihao" value="piao">漂</label>
    <label><input type="checkbox" name="aihao" value="du">赌</label>
    <label><input type="checkbox" name="aihao" value="chou">抽</label>
    <input type="submit" >
    <hr>
    <
    name:${param.name}
    aihao:${paramValues.aihao[0]}
    aihao:${paramValues.aihao[1]}
    aihao:${paramValues.aihao[2]}<br>
    多选框使用：String[] arr = request.getParameterValues("aihao");<br>

  <%
    String[] arr = request.getParameterValues("aihao");

    for (String ah:arr){
  %><%
    out.print("爱好="+ah+"   ");
  %>
    <%
    }
  %>
  </form>
  </body>
</html>
